package com.example.rabbitmq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 扎马斯
 * @date: 2024年08月29日 08:34
 * @describe: rabbitmq测试类
 */
@RestController
@RequestMapping("/test")
public class RabbitTest {

    @Autowired
    private RabbitMqProducer rabbitMqProducer;

    @PostMapping("/rabbitmq")
    public void sendSms() {
        rabbitMqProducer.send("发送消息了");
    }
}
